﻿using HotelManager.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotelManager.Service
{
    public class RoomStateService: IRoomStateService
    {
        private readonly HttpRestClient client;
        public RoomStateService(HttpRestClient client)
        {
            this.client = client;
        }

        public async Task<List<RoomStateData>> GetAllAsync()
        {
            BaseRequest request = new BaseRequest();
            request.Method = RestSharp.Method.Get;
            request.Route = $"api/RoomState/List";
            return await client.ExecuteAsync<List<RoomStateData>>(request);
        }
    }
}
